package com.gao.baseboot;

import com.gao.baseboot.component.FooBean2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class BaseBootApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseBootApplication.class, args);
	}


	@Bean(initMethod = "initMethod",destroyMethod = "destroyMethod")
	public FooBean2 fooBean2(){
		return new FooBean2();
	}

}
